package org.popo.scheduled;

import org.popo.BasciTask;

import com.taobao.api.ApiException;
import com.taobao.api.domain.NotifyTrade;
import com.taobao.api.request.TradePostageUpdateRequest;
import com.taobao.api.response.TradePostageUpdateResponse;

public class UPgradePost extends BasciTask implements Runnable {
	private NotifyTrade notifyTrade;

	public UPgradePost() {
	}

	public UPgradePost(NotifyTrade notifyTrade) {
		this.notifyTrade = notifyTrade;
	}

	@Override
	public void run() {
		notifyTrade.getBuyerNick()
		TradePostageUpdateRequest req = new TradePostageUpdateRequest();
		req.setTid(167060516926696L);
		req.setPostFee("0");
		try {
			TradePostageUpdateResponse response = client.execute(req, SESSION_KEY);
		} catch (ApiException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
